import request from '@/util/request'
import baseUrl from './base'

export function insertErpCommodity(data) {
  return request({
    url: baseUrl + '/erp/commodity/insert',
    method: 'post',
    data
  })
}

export function listErpCommodity(data) {
  return request({
    url: baseUrl + '/erp/commodity/list',
    method: 'post',
    data
  })
}

export function deleteErpCommodity(data) {
  return request({
    url: baseUrl + '/erp/commodity/delete',
    method: 'post',
    data
  })
}

export function getErpCommodity(data) {
  return request({
    url: baseUrl + '/erp/commodity/get',
    method: 'post',
    data
  })
}

export function updateErpCommodity(data) {
  return request({
    url: baseUrl + '/erp/commodity/update',
    method: 'post',
    data
  })
}

